#include "ToolBox/gl/ViewPoints/Projections/persepective.h"

Persepective::Persepective()
{
    fovy=90.0f;
    aspect=1.0f;
    zNear=0.1f;
    zFar=50000.0f;
}

Persepective::Persepective(double aFov, double aAspect, double aZNear, double aZFar) :
    fovy(aFov), aspect(aAspect), zNear(aZNear), zFar(aZFar)
{}

void Persepective::DefineProjection()
{
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    gluPerspective(fovy, aspect, zNear, zFar);
}

